package com.itheima.inner2;

public class Test {

    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.fangWenInner();
    }

}

class Outer{


   private class Inner{
       int  i=20;
       public void sing(){
           System.out.println("唱一首");
       }

    }
    private void jump(){
        System.out.println("跳一曲");

    }

    //提供一个外部可以访问的途径
     public  void  fangWenInner(){

       //Outer.Inner inner= this.new Inner();
         Inner inner= new Inner();
         System.out.println(inner.i);
         inner.sing();
         jump();


     }

}